﻿@model SportsStore.Domain.Entities.Product
<div class="item">
    <div style="float:left;margin-right:20px">
        <img width="75" height="75" src="@Url.Action("GetImage", "Product", new { Model.ProductID})" />
    </div>
    <h3>@Model.Name</h3>
    @Model.Description
    <h4>@Model.Price.ToString("c")</h4>
    @using (Html.BeginForm("AddToCart", "cart"))
    {
        @Html.HiddenFor(x => x.ProductID);
        @Html.Hidden("returnUrl",Request.Url.PathAndQuery)
        <input type="submit" value="+ Add to Cart" />
    }
</div>
